import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import * as getters from './getters'
import ajax from '../ajax'

Vue.use(Vuex)

const state = {
	getBaseMsg: {
    title: '',  
    features: [],
    retreat: '',
    timeConfirm: '',
    soldOut: '',
    praisePercentage: '',
    comment: '',
    tips: [],
    highlights: [],
    commodityTitle: '',
    commodityImg: '',
    commodityDescription: '',
    plan: [],
    scheduleDetail: [],
    additionalServices: [],
    costContain: '',
    containDetail: [],
    costExclusive: '',
    exclusiveDetail: [],
    confirmTime: '',
    bookNotice: {},
    useProcess: '',
    bookProcess: [],
    changeNotice: '',
    refundable: '',
    changeTips: [],
    refundNotice: '',
    payVal: 0,
  }
}

export default new Vuex.Store({
	state,
	actions,
	getters,
	mutations,
})